#ifndef __ERROR_H__
#define __ERROR_H__

typedef unsigned int error_t;

#define NO_ERROR 0

#define ERROR_UNKNOWN_COMMAND 1 // Unknown command

#define ERROR_TIMER_UNDEF 100 // Undefined timer error
#define ERROR_TIMER_STATUS 101 // Time not set status
#define ERROR_TIMER_OUTDATE 102 // Time sync is required
#define ERROR_TIMER_FORMAT 103 // Incorrect time format for specified string. Must be: dd.MM.yyyyThh:mm:ss

#define ERROR_ILLUMINATION_LINES 201 // Line can't be less zero or more than supported
#define ERROR_ILLUMINATION_LEVELS 202 // Too low or too high level value

#define ERROR_THERMOMETER_UNDEF 301 // Thermometer not found
#define ERROR_THERMOMETER_ADDRESS 302 // Incorrect one of thermometer address
#define ERROR_THERMOMETER_RESOLUTION 303 // Incorrect resolution value

#endif